﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using BLL;
using Model;
public partial class canlist : System.Web.UI.Page
{
   
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = Request.QueryString["id"];
        if (!IsPostBack)
        {
          
            if (string.IsNullOrWhiteSpace(id))
            {
                LoadArticle();
            }
            else
            {
                LoadArticle(int.Parse(id));
            }
        }
    }

    private void LoadArticle()
    {
        ltlList.Text = "无信息";
    }


    private void LoadArticle(int id)
    {
        StringBuilder sb = new StringBuilder();
        Blladdr bll = new Blladdr();
        var obj = bll.GetSingle(c => c.ass.Equals(new BllAss().GetSingle(id).name));
        ltlList.Text = obj.cantact;
    }
   
}